package com.demo.test;


import com.demo.annotation.action;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by win10 on 2020/2/5 11:30
 */
public class Annotation {
    public static void main(String[] args) {
        ApplicationContext act = new ClassPathXmlApplicationContext("applicactionContext.xml");
/*        action action = (com.demo.annotation.action) act.getBean("action");
        action.add();*/
        action bean = act.getBean(action.class);
        bean.add();
    }
}
